<%--
  Created by IntelliJ IDEA.
  User: 30890
  Date: 2023/4/17
  Time: 19:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
            display: flex;
            flex-direction: column;
            min-height: 100vh; /* 视口高度 */
        }

        header {
            background-color: #4CAF50;
            color: white;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        #header-title {
            font-size: 36px;
        }

        #user-info {
            background-color: #4CAF50;
            border: 1px solid grey;
            border-radius: 5px;
            padding: 10px;
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        #user-info a {
            color: yellow;
            font-size: 16px;
            text-decoration: none;
            display: block;
        }

        #user-info a:hover {
            text-decoration: underline;
        }

        #daohang {
            width: 100%;
            border-right: 1px solid grey;
            background-color: #fff;
            padding-top: 5px;
            flex-shrink: 0; /* 防止缩小 */
        }

        #file {
            width: 180px;
            margin-bottom: 20px;
            margin-left: 120px;
            background-color: #4CAF50;
            list-style-type: none;
            border-radius: 5px;
            transition: background-color 0.3s ease;
            float: left;
        }

        #file a {
            color: white;
            font-size: 18px;
            text-decoration: none;
            display: block;
            padding: 15px;
            text-align: center;
        }

        #file:hover {
            background-color: #45a049;
        }

        ul {
            padding: 0;
        }

        li {
            list-style: none;
        }

        .container {
            display: flex;

            margin-bottom: 10px;

        }
        </style>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <link href="${pageContext.request.contextPath}/css/css.css" rel="stylesheet" media="screen">
</head>
<body>


<header>
    <div id="header-title">学生信息管理系统</div>
    <div id="user-info">
        <a href="#">当前用户：</a>
        <a href="#">${session_person.userName}</a>
    </div>
</header>

<div class="container">
    <div id="daohang">
        <ul>
            <c:if test="${session_person.userIdentify == 0}">
                <li id="file"><a href="common.action?action=index">查看首页</a></li>
                <li id="file"><a href="student.action?action=list">选择老师</a></li>
                <li id="file"><a href="student.action?action=goMyTeacher">我的老师</a></li>
                <li id="file"><a href="common.action?action=goMyDetail">我的信息</a></li>
                <li id="file"><a href="outLogin">退出系统</a></li>
            </c:if>
            <c:if test="${session_person.userIdentify == 1}">
                <li id="file"><a href="common.action?action=index">查看首页</a></li>
                <li id="file"><a href="tea.action?action=list">学生管理</a></li>

                <li id="file"><a href="tea.action?action=goMyTask">任务管理</a></li>
                <li id="file"><a href="tea.action?action=goAddTask">添加任务</a></li>
                <li id="file"><a href="common.action?action=goMyDetail">我的信息</a></li>
                <li id="file"><a href="outLogin">退出系统</a></li>
            </c:if>

            <c:if test="${session_person.userIdentify == 2}">
                <li id="file"><a href="common.action?action=index">查看首页</a></li>
                <li id="file"><a href="man.action?action=list">人员管理</a></li>
                <li id="file"><a href="man.action?action=goAddPerson">人员添加</a></li>
                <li id="file"><a href="common.action?action=goMyDetail">我的信息</a></li>
                <li id="file"><a href="outLogin">退出系统</a></li>
            </c:if>
            <%--    <div id="file" onclick="clickThis()"></div>--%>
        </ul>
    </div>

</div>
</body>



<jsp:include page="${mainRignt=null?'blank.jsp':mainRight}"></jsp:include>

</body>
</html>
